3.342 \(\int \sqrt{a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2} \, dx\)

Optimal. Leaf size=43 \[ -\frac{a \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a \sin (e+f x)+a}} \]

[Out]

-(a*Cos[e + f*x]*(c - c*Sin[e + f*x])^(3/2))/(2*f*Sqrt[a + a*Sin[e + f*x]])

________________________________________________________________________________________

Rubi [A]  time = 0.0805129, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.033, Rules used = {2738} \[ -\frac{a \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a \sin (e+f x)+a}} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[a + a*Sin[e + f*x]]*(c - c*Sin[e + f*x])^(3/2),x]

[Out]

-(a*Cos[e + f*x]*(c - c*Sin[e + f*x])^(3/2))/(2*f*Sqrt[a + a*Sin[e + f*x]])

Rule 2738

Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[
(-2*b*Cos[e + f*x]*(c + d*Sin[e + f*x])^n)/(f*(2*n + 1)*Sqrt[a + b*Sin[e + f*x]]), x] /; FreeQ[{a, b, c, d, e,
 f, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[n, -2^(-1)]

Rubi steps

\begin{align*} \int \sqrt{a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2} \, dx &=-\frac{a \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a+a \sin (e+f x)}}\\ \end{align*}

Mathematica [A]  time = 0.21214, size = 60, normalized size = 1.4 \[ \frac{c \sec (e+f x) \sqrt{a (\sin (e+f x)+1)} \sqrt{c-c \sin (e+f x)} (4 \sin (e+f x)+\cos (2 (e+f x)))}{4 f} \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[a + a*Sin[e + f*x]]*(c - c*Sin[e + f*x])^(3/2),x]

[Out]

(c*Sec[e + f*x]*Sqrt[a*(1 + Sin[e + f*x])]*(Cos[2*(e + f*x)] + 4*Sin[e + f*x])*Sqrt[c - c*Sin[e + f*x]])/(4*f)

________________________________________________________________________________________

Maple [A]  time = 0.176, size = 61, normalized size = 1.4 \begin{align*}{\frac{\sin \left ( fx+e \right ) \left ( \left ( \cos \left ( fx+e \right ) \right ) ^{2}+\sin \left ( fx+e \right ) +1 \right ) }{2\,f \left ( \cos \left ( fx+e \right ) \right ) ^{3}} \left ( -c \left ( -1+\sin \left ( fx+e \right ) \right ) \right ) ^{{\frac{3}{2}}}\sqrt{a \left ( 1+\sin \left ( fx+e \right ) \right ) }} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sin(f*x+e))^(1/2)*(c-c*sin(f*x+e))^(3/2),x)

[Out]

1/2/f*(-c*(-1+sin(f*x+e)))^(3/2)*sin(f*x+e)*(a*(1+sin(f*x+e)))^(1/2)*(cos(f*x+e)^2+sin(f*x+e)+1)/cos(f*x+e)^3

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \sin \left (f x + e\right ) + a}{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac{3}{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(1/2)*(c-c*sin(f*x+e))^(3/2),x, algorithm="maxima")

[Out]

integrate(sqrt(a*sin(f*x + e) + a)*(-c*sin(f*x + e) + c)^(3/2), x)

________________________________________________________________________________________

Fricas [A]  time = 1.09567, size = 155, normalized size = 3.6 \begin{align*} \frac{{\left (c \cos \left (f x + e\right )^{2} + 2 \, c \sin \left (f x + e\right ) - c\right )} \sqrt{a \sin \left (f x + e\right ) + a} \sqrt{-c \sin \left (f x + e\right ) + c}}{2 \, f \cos \left (f x + e\right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(1/2)*(c-c*sin(f*x+e))^(3/2),x, algorithm="fricas")

[Out]

1/2*(c*cos(f*x + e)^2 + 2*c*sin(f*x + e) - c)*sqrt(a*sin(f*x + e) + a)*sqrt(-c*sin(f*x + e) + c)/(f*cos(f*x +
e))

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))**(1/2)*(c-c*sin(f*x+e))**(3/2),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(1/2)*(c-c*sin(f*x+e))^(3/2),x, algorithm="giac")

[Out]

Exception raised: AttributeError